Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IEEE-249: Issues with negative stock number and blank datasheet and m… #33

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

terryluan12
Copy link

…anufacturing number fixed

Overview

@YuYing-Liang
Copy link
Member

@terryluan12 you need to run prettier in the frontend folder

@@ -18,8 +18,8 @@ const Item = ({ image, title, total, currentStock }: ItemProps): ReactElement =>
const stock = !currentStock
? "OUT OF STOCK"
: userType === "participant"
? currentStock + " IN STOCK"
: currentStock + " OF " + total + " IN STOCK";
? Math.max(currentStock, 0) + " IN STOCK"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will show the message 0 IN STOCK but we actually want it to say OUT OF STOCK, could you make the changes to allow that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants